package com.alibaba.algo.controller.app;

import com.xxl.sso.core.conf.Conf;
import org.springframework.context.annotation.Primary;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

@Controller
@RequestMapping("/usercenter-admin-app/sso")
@Primary
public class SsoReceiveServiceController {

    /**
     * 解决文根问题，forward到sso/receive
     * @param request
     * @param response
     * @throws IOException
     */
    @GetMapping("/receive")
    public String receive(HttpServletRequest request, HttpServletResponse response) throws IOException {
        return "forward:/sso/receive";
    }
}
